package com.amc.common.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CustomCache {

    //缓存cacheKey的前缀
    String prefix() default "cache";

    //缓存cacheKey的后缀
    String suffix() default "info";

    long timeout() default 3000;

    TimeUnit timeUnit() default TimeUnit.SECONDS;

}

